$OpenBSD: patch-libgcc_libgcc2_c,v 1.1.1.1 2014/06/26 16:30:17 pascal Exp $
--- libgcc/libgcc2.c.orig	Wed Nov 27 13:17:05 2013
+++ libgcc/libgcc2.c	Mon Dec  2 12:20:03 2013
@@ -2191,6 +2191,7 @@ mprotect (char *addr, int len, int prot)
 #endif /* WINNT && ! __CYGWIN__ */
 
 #ifdef TRANSFER_FROM_TRAMPOLINE
+#include <sys/mman.h>
 TRANSFER_FROM_TRAMPOLINE
 #endif
 #endif /* L_trampoline */
